<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="referrer" content="no-referrer">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
    <link rel="shortcut icon" href="../image/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="https://at.alicdn.com/t/c/font_4726301_kn6ig9l5b8o.css">
    <link rel="stylesheet" href="../style/public.css">
    <title>设置</title>
    <style>
        body{
            background: #f7f7f7;
        }
        header {
            height: 50px;
        }
        .content-item {
            height: 45px;
            border-radius: 10px;
        }
        .bbs {
            border-bottom: 1px solid #eee;
        }
        footer {
            height: 45px;
            bottom: 0;
        }
    </style>
</head>

<body>
    <header class="bafff fcc">
        <h1 class="f18">设置</h1>
    </header>

    <div class="content pa5 c333">
        <a class="content-item bbs bafff fcb pl-10 pr-10">
            <span>清除缓存</span>
            <i class="iconfont icon-xiangyoujiantou1 c888"></i>
        </a>

        <a class="content-item  fcb bafff mt-5 pl-10 pr-10 "id="logoutLink">
            <span>退出登入</span>
            <i class="iconfont icon-xiangyoujiantou1 c888"></i>
        </a>
    </div>

    <footer class="fixed w100p bg-base fcc">
        <a href="./my.html" class="f16 cfff">退出</a>
    </footer>

    <script src="../js/axios.js"></script>
    <script src="../js/jquery-3.4.1.min.js"></script>
    <script src="../js/vue2.js"></script>

    <script>
        const logoutLink = document.getElementById('logoutLink');

        // 为“退出登入”链接添加点击事件监听器
        logoutLink.addEventListener('click', function () {
            // 清除localStorage中记录的登录状态
            localStorage.removeItem('isLoggedIn');
            window.location.href = './my.html';
        });
    </script>
</body>

</html>